<%--
  Created by IntelliJ IDEA.
  User: 62585
  Date: 2021/4/1
  Time: 16:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.Locale" %>
<%@ page import="java.util.ResourceBundle" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>i18n</title>
</head>
<body>

<%
    Locale locale = request.getLocale();
    //Locale locale = Locale.US;
    //Locale locale = Locale.CHINA;
    System.out.println(locale);
    ResourceBundle i18n = ResourceBundle.getBundle("i18n", locale);
%>
<h1><%=i18n.getString("username")%></h1>
<h1><%=i18n.getString("password")%></h1>

</body>
</html>
